package ooday04;
//定时器
import java.util.Timer;
import java.util.TimerTask;
public class TimerDemo {
    public static void main(String[] args) {
        /*
        Timer timer = new Timer(); //定时器对象
        int interval = 1000; //定时间隔
        timer.schedule(new TimerTask() {
            public void run() { //定时干的事-----
                System.out.println("该连代码了");
            }
        }, 5000,1000); //定时计划表
         */
    }
}
